package com.android.functionmanagement.location;

public class LocationFactory {
	public static final int Location_GPS = 1000;
	public static final int LOCATION_CELL = 1001;
	public static final int Location_WIFI = 1002;

	public static LocationMode createLocation(int type) {
		LocationMode locationMode = null;
		switch (type) {
		case Location_GPS:
			locationMode = new GPSLocationMode();
			break;
		case LOCATION_CELL:
			locationMode = new CellLocationMode();
			break;
		case Location_WIFI:
			locationMode = new WIFILocationMode();
			break;
		default:
			break;
		}
		return locationMode;
	}
}
